#include <stdio.h>
#include <math.h>

int main()
{
	FILE *fp;
	fp = fopen("base_exp.txt", "r");
	float pairs[2000], max=0, x;
	int i=0, j, line=0;
	while(i<2000) {
		fscanf(fp, "%f", &pairs[i++]);
	}
	fclose(fp);
	for (i=0; i<1999; i+=2) {		
		x = pairs[i+1]*log10(pairs[i]);
		if (x > max){max = x;line=i;}
	}
	printf("%f %d\n", pairs[line], (line+2)/2);
}
